package cn.school.educational.entity;

import cn.school.common.BaseVO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@TableName("t_homework_comments")
public class HomeworkComments extends BaseVO {
    private static final long serialVersionUID = 4513725789873501754L;

    /**
     * 作业ID
     */
    private String homeworkId;
    /**
     * 评论上级ID
     */
    private String pid;
    /**
     * 评论内容
     */
    private String commentsTxt;
    /**
     * 评论用户名称
     */
    private String commentsUser;

    /**
     * 是否有回复 1-有
     */
    private String isReply;

    @TableField(exist = false)
    private List<HomeworkComments> children = new ArrayList<>();



    @TableField(exist = false)
    private String replyUser;


}
